﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<DataAccessLayer.Payment>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Index
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Payment</h2>

    <table width="100%">
        <tr>
            <th>
                ID
            </th>
            <th>
                TransactionNumber
            </th>
            <th>
                VoucherID
            </th>
            <th>
                Amount
            </th>
            <th>
                PaymentDate
            </th>
        </tr>

    <% foreach (var item in Model) { %>
    
        <tr>
            <td>
                <%: item.ID %>
            </td>
            <td>
                <%: item.TransactionNumber %>
            </td>
            <td>
                <%: item.VoucherID %>
            </td>
            <td>
                <%: String.Format("{0:F}", item.Amount) %>
            </td>
            <td>
                <%: String.Format("{0:g}", item.PaymentDate) %>
            </td>
        </tr>
    
    <% } %>

    </table>

</asp:Content>

